# 读取readme.txt文件的所有内容
# 找到被打开文件
file = "test_file/readme.txt"
# 1.打开文件
with open(file, mode="r", encoding="utf-8") as f:
    # 2.操作文件:读取
    text = f.read()
    print(text)
# 3.关闭文件(with open会自动关闭)
